// pages/order/order-create/order.js
import { urlEncode } from '../../../utils/util.js'
import { Target, HttpUtil } from '../../../utils/http_util.js'
var config = require('../../../utils/config.js')
var utils = require('../../../utils/util.js')

Page({

  /**
   * 页面的初始数据
   */
  data: {
    imgUrlBase: config.ictx,

    baseinfo: '',
    service:'',
    cinfo:''
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var that = this;
    console.log(JSON.parse(options.baseinfo))
    console.log(JSON.parse(options.ser))
    that.setData({
      baseinfo: JSON.parse(options.baseinfo),
      service: JSON.parse(options.ser),
      cinfo: JSON.parse(options.cinfo)
    })

    
    
  },
  checkAddress:function(){
    var that = this;
    wx.navigateTo({
      url: '/pages/user/addressManage/addressManage?customerId='+ that.data.cinfo.id,
    })
  }
})